package com.syy.controller.admin.task.vo.instance;
import com.syy.controller.admin.definition.vo.model.simple.BpmSimpleModelNodeVO;
import com.syy.controller.admin.task.vo.task.BpmTaskRespVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Set;

@Schema(description = "管理后台 - 流程示例的 BPMN 视图 Response VO")
@Data
@Accessors(chain = true)
public class BpmProcessInstanceBpmnModelViewRespVO {

    // ========== 基本信息 ==========

    private BpmProcessInstanceRespVO processInstance;

    private List<BpmTaskRespVO> tasks;

    private String bpmnXml;

    @Schema(description = "SIMPLE 模型")
    private BpmSimpleModelNodeVO simpleModel;

    // ========== 进度信息 ==========

    private Set<String> unfinishedTaskActivityIds; // 只包括 UserTask

    private Set<String> finishedTaskActivityIds; // 包括 UserTask、Gateway 等，不包括 SequenceFlow

    private Set<String> finishedSequenceFlowActivityIds; // 只包括 SequenceFlow

    private Set<String> rejectedTaskActivityIds; // 只包括 UserTask

}
